The Window Definition Function Resource
CHANGED WITH THE APPEARANCE MANAGER
The window definition ('WDEF')
resource is the executable code for your window definition function. Provide as the resource data the compiled or assembled code of your window definition procedure. The entry point of your procedure must be at the beginning of the resource data. Under Appearance, there are two new values that the Window Manager can pass in themessage
parameter to your'WDEF'
,kWindowMsgGetFeatures
andkWindowMsgGetRegion.
See
MyWindowDefProc
for more information about creating a window definition function.
- WARNING
- All resources of type
'WDEF'
should be nonpurgeable, to ensure that the resource is always loaded. If the resource is not available when the Window Manager needs to load it, a crash will occur.![]()
WHEN THE APPEARANCE MANAGER IS NOT AVAILABLE
The messageskWindowMsgGetFeatures
andkWindowMsgGetRegion
will not be sent to your window definition function.